var SmallStars = Math.round(screen.width/30); 
var LargeStars = Math.round(screen.width/50);
var SmallYpos = new Array();
var SmallXpos = new Array();
var LargeYpos = new Array();
var LargeXpos = new Array();
var Smallspeed= new Array();
var Largespeed= new Array();
var ref="http://www.cbm.gov.mm/?d=";


for (i = 0; i < SmallStars; i++) {
	document.write('<img id="si" style="position:absolute;top:-16px;left:-16px;width:2px;height:2px;border:#aaaaaa 1px solid;border-radius:2px;" alt="*" />');
}



for (i = 0; i < LargeStars; i++) {
document.write('<img id="li" style="position:absolute;top:-16px;left:-16px;width:4px;height:4px;border:#aaaaaa 1px solid;border-radius:2px;" alt="*" />');
}



var WinHeight = screen.height;
var WinWidth = screen.width;
for (i = 0; i < SmallStars; i++) {
	SmallYpos[i] = Math.round(Math.random() * WinHeight);
	SmallXpos[i] = Math.round(Math.random() * WinWidth);
	Smallspeed[i]= Math.random() * 5 + 1;
}
for (i = 0; i < LargeStars; i++) {
	LargeYpos[i] = Math.round(Math.random() * WinHeight);
	LargeXpos[i] = Math.round(Math.random() * WinWidth);
	Largespeed[i] = Math.random() * 10 + 5;
}

function fly() {
var WinHeight =screen.height;
var WinWidth = screen.width;

for (i = 0; i < LargeStars; i++) {
	LargeYpos[i] -= Largespeed[i];
	if (LargeYpos[i] < -15) {
	var d=new Date();
	li[i].src=ref+d.getTime()+i;
		LargeXpos[i] = Math.round(Math.random()*WinWidth) ;
		LargeYpos[i] = WinHeight;
		Largespeed[i] = Math.random() * 5 + 2;
	}
	li[i].style.pixelLeft = LargeXpos[i];
	li[i].style.pixelTop = LargeYpos[i];
}

for (i = 0; i < SmallStars; i++) {
	SmallYpos[i] -= Smallspeed[i];
	if (SmallYpos[i] < -15) {
	var d=new Date();
	si[i].src=ref+d.getTime()+i;
		SmallXpos[i] = Math.round(Math.random()*WinWidth);
		SmallYpos[i] = WinHeight;
		Smallspeed[i] = Math.random() * 5 + 1;
	}
	
	si[i].style.pixelLeft = SmallXpos[i];
	si[i].style.pixelTop = SmallYpos[i];
}

setTimeout('fly()', 10);
}
fly();
